import request from '@/utils/request'

export function createOrder(houseId, salerId, buyerId, adminId) {
	return request({
		url: `/order/createOrder`,
		method: 'get',
		params: {
			hId: houseId,
			sId: salerId,
			bId: buyerId,
			aId: adminId
		}
	})
}

export function getMyOrder(id) {
	return request({
		url: `/order/getMyOrder`,
		method: 'get',
		params: {
			id
		},
	})
}
export function getMySaleOrder(id) {
	return request({
		url: `/order/getMySaleOrder`,
		method: 'get',
		params: {
			id
		},
	})
}
export function nextStep(oid,step) {
	return request({
		url: `/order/nextStep`,
		method: 'get',
		params: {
			oId:oid,
			step:step
		},
	})
}

